import request from '@/utils/request'
// 分页查询机场信息
export const getAirport = (params) => request({
  url: 'system/airport/list',
  method: 'get',
  params,
})
// 新增机场信息
export const addAirport = (data) => request({
  url: '/system/airport',
  method: 'post',
  data,
})
// 删除机场信息
export const delAirport = (ids) => request({
  url: `system/airport/${ ids }`,
  method: 'delete',
})
// 根据id获取机场详情
export const getAirportDetail = (id) => request({
  url: `system/airport/${ id }`,
  method: 'get',
})
// 修改机场信息
export const editAirport = (data) => request({
  url: '/system/airport',
  method: 'put',
  data,
})
